package com.cattsoft.spring.aop.spring.one.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.cattsoft.spring.aop.spring.one.BusinessFacade;

public class BusinessAopDeclarativeUsage {
	public static void main(String[] args) {
		//ApplicationContext ctx = new FileSystemXmlApplicationContext("E:/workspace/SSH2/src/com/cattsoft/spring/aop/spring/one/ioc/businessaop.xml");
		ApplicationContext ctx = new FileSystemXmlApplicationContext("E:/workspace/SSH2/src/com/cattsoft/spring/aop/spring/one/ioc/businessaop-another.xml");
		BusinessFacade businessProxy = (BusinessFacade)ctx.getBean("businessProxy");
		businessProxy.businessMethod1();
		businessProxy.businessMehtod2();
	}
}
